/*
** defines Terrarium
 */

#include "World.hpp"

Terrarium::Terrarium(int numAnts) {
    FORRANGE(i, numAnts)
        ants.append(Ant());

    pheromones = create_bitmap(WORLD_SIZE.x, WORLD_SIZE.y);
    clear_to_color(pheromones, makecol(0, 0, 0));
}

void Terrarium::step() {
    FOREACH(ant, ants)
        ant->step();
}
